﻿using System.ComponentModel.DataAnnotations;

namespace EMC.VISITOR.Core;

    /// <summary>
    /// 意见反馈基础输入参数
    /// </summary>
    public class SysFeedbackBaseInput
    {
        /// <summary>
        /// 反馈类型
        /// </summary>
        public virtual FeedbackType? Type { get; set; }
        
        /// <summary>
        /// 反馈内容
        /// </summary>
        public virtual string? Description { get; set; }
        
        /// <summary>
        /// 更新时间
        /// </summary>
        public virtual DateTime? UpdateTime { get; set; }
        
    }

    /// <summary>
    /// 意见反馈分页查询输入参数
    /// </summary>
    public class SysFeedbackInput : BasePageInput
    {
        /// <summary>
        /// 关键字查询
        /// </summary>
        public string SearchKey { get; set; }

              /// <summary>
             /// 反馈类型
             /// </summary>
             public FeedbackType? Type { get; set; }
             
    }

    /// <summary>
    /// 意见反馈增加输入参数
    /// </summary>
    public class AddSysFeedbackInput : SysFeedbackBaseInput
    {
    }

    /// <summary>
    /// 意见反馈删除输入参数
    /// </summary>
    public class DeleteSysFeedbackInput : BaseIdInput
    {
    }

    /// <summary>
    /// 意见反馈更新输入参数
    /// </summary>
    public class UpdateSysFeedbackInput : SysFeedbackBaseInput
    {
        /// <summary>
        /// Id
        /// </summary>
        [Required(ErrorMessage = "Id不能为空")]
        public long? Id { get; set; }
        
    }

    /// <summary>
    /// 意见反馈主键查询输入参数
    /// </summary>
    public class QueryByIdSysFeedbackInput : DeleteSysFeedbackInput
    {

    }
